package com.taru.university.mapper;

import com.taru.university.model.Analise;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Repository
@Component("analiseMapper")
public interface AnaliseMapper {
    /**
     * 根据userId和数据批次号查询结果
     * @param userId
     * @param dataBatchNumber
     * @return
     */
    Analise queryAnaliseResult(@Param("userId") String userId, @Param("dataBatchNumber") String dataBatchNumber);

    /**
     * 插入结果
     * @param analise
     */
    void insertAnaliseResult(Analise analise);
    /**
     * 删除结果
     * @param userId
     * @param dataBatchNumber
     */
    void deletetAnaliseResult(@Param("userId") String userId, @Param("dataBatchNumber") String dataBatchNumber);
}
